<div class="layuimini-main" xmlns:th="http://www.w3.org/1999/xhtml">
<style>
    .layuimini-form .layui-form-item label{ line-height: 40px; text-align: right; padding-right: 10px;}
    #album_image{ max-height: 300px; max-width: 150px;}
    .passwordFiv{ display: none;}
</style>
    <div class="layui-form layuimini-form">
        <input type="hidden" id="id" name="id" th:value="${id}">
        <div class="layui-form-item layui-row">
            <label class="layui-col-sm2 required">相册名称</label>
            <div class="layui-col-sm10">
                <input type="text" name="name" id="name" lay-verify="required" lay-reqtext="相册名称不能为空" placeholder="请输入相册名称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-row">
            <label class="layui-col-sm2 required">相册类型</label>
            <div class="layui-col-sm10">
                <input type="radio" name="type" value="0" title="照片" checked>
                <input type="radio" name="type" value="1" title="视频">
            </div>
        </div>
        <div class="layui-form-item layui-row">
            <label class="layui-col-sm2 required">相册封面图</label>
            <div class="layui-upload layui-col-sm10">
                <button type="button" class="layui-btn" id="imgBtn">上传图片</button>
                <div class="layui-upload-list update_list">
                    <img class="layui-upload-img" id="album_image" src="/photo_album_img/photo_album_img.jpg">
                    <p id="album_image_text"></p>
                    <input type="hidden" id="albumImagePath" name="img" value="photo_album_img.jpg">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-row">
            <div class="layui-col-sm4">
                <label class="layui-col-sm6">是否加锁</label>
                <div class="layui-col-sm6">
                    <input type="checkbox" id="isLockSwitch" lay-filter="isLockSwitch" lay-skin="switch" lay-text="是|否">
                    <input type="hidden" name="isLock" id="isLock" value="0">
                </div>
            </div>
            <div class="layui-col-sm8 passwordFiv">
                <label class="layui-col-sm4">相册密码</label>
                <div class="layui-col-sm8">
                    <input type="text" name="password" id="password" placeholder="请输入相册密码" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-row">
            <label class="layui-col-sm2">是否显示</label>
            <div class="layui-col-sm10">
                <input type="checkbox" id="isShowSwitch" lay-filter="isShowSwitch" lay-skin="switch" lay-text="是|否" checked>
                <input type="hidden" name="isShow" id="isShow" value="0">
            </div>
        </div>
        <div class="layui-form-item layui-row">
            <div class="layui-col-sm6">
                <label class="layui-col-sm4 required">阅读数量</label>
                <div class="layui-col-sm8">
                    <input type="number" name="readNum" id="readNum" lay-verify="required" lay-reqtext="阅读数量不能为空" placeholder="请输入阅读数量" value="0" class="layui-input">
                </div>
            </div>
            <div class="layui-col-sm6">
                <label class="layui-col-sm4 required">赞数量</label>
                <div class="layui-col-sm8">
                    <input type="number" name="praiseNum" id="praiseNum" lay-verify="required" lay-reqtext="赞数量不能为空" placeholder="请输入赞数量" value="0" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-row layui-form-text">
            <label class="layui-col-sm2">相册简介</label>
            <div class="layui-col-sm10">
                <textarea name="content" id="content" placeholder="请输入内容" class="layui-textarea"></textarea>
            </div>
        </div>
        <div class="layui-form-item" style="text-align: right;">
            <div>
                <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">保存</button>
                <button class="layui-btn layui-btn-primary" id="closeBtn">取消</button>
            </div>
        </div>
    </div>
</div>
<!-- 导入js -->
<script type="text/javascript" src="/web/boPhotoAlbum/boPhotoAlbum_add.js"></script>